﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Data.Common;
using System.Data.Linq;
using System.Data.Metadata.Edm;
using System.Data.Objects;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using Microsoft.Practices.Unity;
using Defero.Core;
using Defero.Core.DomainObjects;
using Defero.Core.Repositories;
using Defero.Domain.Objects;
using Defero.Infrastucture;
using Defero.Infrastucture.Persistence;
using Defero.Infrastucture.Repositories;
using System.Data.EntityClient;
namespace Defero.ConsoleGUI
{
    class Program
    {
        static void Main(string[] args)
        {

            IUnityContainer globalContainer = new UnityContainer();

            globalContainer.RegisterType<IBugTracker, BugTracker>();
            globalContainer.RegisterType<IBugTrackerRepository, BugTrackerRepository>();
            globalContainer.RegisterInstance<DbConnection>(new EntityConnection("name=DeferoDatabase"));

            var obj = globalContainer.Resolve<IBugTracker>();         

            //obj.CreateProject();

            Console.Write("Done !!");
            Console.Read();

        }
    }
}
